通过QQ账号查询用户信息
该接口用于获取微信支付集星光用户信息。合作方可根据该用户信息判断该用户是否为学生身份。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| string | 用户QQ账号 | |
| query | object | 声明请求的查询参数 |
| appid | string | 商户appid |
php
$instance->v3->eduStar->users->qq->_qq_->getAsync([
'qq' => '100000000000',
'query' => [
'appid' => 'wx998877665544wx',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/edu-star/users/qq/{qq}')->getAsync([
'qq' => '100000000000',
'query' => [
'appid' => 'wx998877665544wx',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/edu-star/users/qq/{qq}']->getAsync([
'qq' => '100000000000',
'query' => [
'appid' => 'wx998877665544wx',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->eduStar->users->qq->_qq_->get([
'qq' => '100000000000',
'query' => [
'appid' => 'wx998877665544wx',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/edu-star/users/qq/{qq}')->get([
'qq' => '100000000000',
'query' => [
'appid' => 'wx998877665544wx',
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/edu-star/users/qq/{qq}']->get([
'qq' => '100000000000',
'query' => [
'appid' => 'wx998877665544wx',
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| education_star_student | boolean | 学生标识 |
| appid | string | 商户appid |
| wechat_openid | string | 用户在appid下的唯一标识 |
| string | 用户QQ账号 | |
| register_time | string | 注册时间 |
参阅 官方流程图